#if !defined(PRINT_ERROR_H)
#define PRINT_ERROR_H
// print_error.h
//


#include <string>
#include <iostream>
#include <indent_str.h>

inline void std_print_error(const std::string& error_str, unsigned indent = 8)
{
	std::cerr << "\nError:\n" << indent_string(error_str, indent) << "\n\n";
}


inline void std_print_error(std::ostream& os, const std::string& error_str, unsigned indent = 8)
{
	os << "\nError:\n" << indent_string(error_str, indent) << "\n\n";
}


inline void std_print_warning(const std::string& error_str, unsigned indent = 8)
{
	std::cerr <<  indent_string("Warning:", indent) << "\n"
			<< indent_string(error_str, indent * 2) << "\n";
}


inline void std_print_warning(std::ostream& os, const std::string& error_str, unsigned indent = 8)
{
	os <<  indent_string("Warning:", indent) << "\n"
			<< indent_string(error_str, indent * 2) << "\n";
}


#endif //PRINT_ERROR_H


